package com.pzl.mapper;

import com.pzl.entity.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * RoleMapper class
 *
 * @Author panzhenglei
 * @Date 2019/6/11 2:25 PM
 */
public interface RoleMapper {

    List<Role> findAll();

    void save(Role role);

    void updateRoleById(Role role);

    void updateRoleByIdUseTrim(Role role);

    List<Role>  findRoleByIds(@Param("ids") List<Long> ids);

    //List<Role>  findRoleByConditions(@Param("roleName") String roleName, @Param("roleDesc") String roleDesc);

    List<Role>  findRoleByConditions(Role role);


}
